<template>
	<view class="cu-list menu" :class="[menuBorder?'sm-border':'',menuCard?'card-menu margin-top':'']">
		<view class="cu-item" :class="menuArrow?'arrow':''">
			<view class="content" style="display: flex;align-items: center;">
				<text class="cuIcon-titles text-orange"></text>请把宝贵的建议告诉我们：
			</view>
		</view>
		<view class="cu-form-group">
			<textarea v-model="msg" maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="请在这里填写:"></textarea>
		</view>
		<button @click="send">发送</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuBorder: false,
				menuArrow: false,
				menuCard: true,
				modalName: null,
				textareaAValue: '',
				msg:''
			}
		},
		methods:{
			send() {
				if(this.msg){
					this.msg = ''
					uni.showToast({
					    title: '发送成功',
					    duration: 1000
					})
					setTimeout(function(){
						uni.reLaunch({
							url: '../mine'
						})
					},1000)
				}else{
					uni.showToast({
						icon:'none',
					    title: '内容不能为空。',
					    duration: 1000
					})
				}
			},
			textareaAInput(e) {
				this.textareaAValue = e.detail.value
			},
		}
	}
</script>

<style>
</style>
